package com.liuyi.usercenterservice.common;

import lombok.Data;

import java.io.Serializable;

/**
 * @author 刘燚
 * @version v1.0.0
 * @Description TODO 返回给前端的统一格式
 * @createDate：2024/3/26 23:09
 * @email liuyia2022@163.com
 */
@Data
public class BaseResponse <T> implements Serializable {
    private int code;
    private String message;
    private T data;
    public BaseResponse() {
    }
    public BaseResponse(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public BaseResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
